﻿@model Lion.WeiXin.Core.Models.TemplateModel
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section ChildPageJs {
     <style>
        .file-box
        {
            position: relative;
            width: 340px;
        }
        .txt
        {
            height: 22px;
            border: 1px solid #cdcdcd;
            width: 180px;
        }
        .btn
        {
            background-color: #FFF;
            border: 1px solid #CDCDCD;
            height: 24px;
            width: 70px;
        }
        .file
        {
            position: absolute;
            top: 0;
            right: 80px;
            height: 24px;
            filter: alpha(opacity:0);
            opacity: 0;
            width: 260px;
        }
    </style>
   <script src="/Scripts/App_Scripts/TemplateShow.js" type="text/javascript"></script>   
}
<form id="fmSave" name="fmSave" enctype="multipart/form-data">
<div class="titstyle01 clearfix">
        <strong>修改模板</strong>
    </div>
    <div class="boxstyle01 clearfix pt25 pb10 pl10">
        <table id="tbl" >             
            <tr >
                <td>
                    <span class="cf60">*</span>@Html.Label("Name","模板名")：
                </td>
                <td>  
                    <input type="hidden" id="AID" name="AID" value="@Model.AID" class="slcw120s f_l m5"  />   
                     <input type="hidden" id="action" name="action" value="Update" class="slcw120s f_l m5" />              
                    <input type="text" id="Name" name="Name" value="@Model.Name"  class="slcw120s f_l m5"  />               
                </td>
            </tr>  
             <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("TypeCode","模板类型")：
                </th>
                <td>
                    @Html.DropDownList("TypeCode", (List<SelectListItem>)ViewData["selTypeCode"], new { @class="slcw128 m5"})    
                </td>
            </tr>  
             <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("FilePath","模板文件")：
                </th>
                <td>
                    <div class="file-box">
                        <input type='text' name='FilePath' id='FilePath' value="@Model.FilePath" class='txt m5' />
                        <input type='button' class='btn m5' value='浏览...' />
                        <input type="file" name="fileField" class="file" id="fileField" size="28" onchange="document.getElementById('FilePath').value=this.value" />

                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" name="submit" value="确 定" class="btn02 f_l m15" id="btnSave" />
                    <input type="button" class="btn02 f_l m15" id="btnCancel" value="取 消" />
                </td>
            </tr>
        </table>
    </div>
</form>
